Skip navigation

Abhijit Nadgouda’s List of WordPress Global Variables

Abhijit Nadgouda has an entire category of posts on “WordPress Global Variables” that are worth exploring if you are writing WordPress Plugins, WordPress Widgets, or messing around with WordPress Themes and template tags.

Here are some great highlights of the many WordPress Global Variables Nadgouda has written about:

You can see the full list of WordPress Global Variables by Nadgouda to find new articles and the ones I missed, and find more technical information about the various WordPress Global Variables, WordPress Hooks, WordPress Functions, and Conditional Tags at:

Related Articles


Site Search Tags: , , , , , , , , , , ,
Copyright Lorelle VanFossen, member of the 9Rules Network

Member of the 9Rules Blogging Network

4 Comments

  1. Posted November 24, 2006 at 11:17 am | Permalink

    Thanks for highlighting it Lorelle. The reason I set out to document the global variables was because I got confused while working on some projects. Though global variables are very convenient to work with, change in them can impact the entire application, and hence this effort so that users can knowingly use the them.

  2. Posted November 24, 2006 at 12:51 pm | Permalink

    BEAUTIFUL!
    You can’t imagine how many times I’ve wanted to know these variables in order to output custom pieces of information in my WordPress themes.
    Abhijit: Thank you! thank you! thank you!

  3. Posted December 1, 2010 at 11:14 pm | Permalink

    i want to declare a variable in any file of wordpress and then i want to use its value on any page of wordpres, let me explain you what i want to do and what i did

    step 1. i declared a variable in functions.php file like this
    global $test;
    $test = ‘2’;

    step 2. Now i wrote this in header.php file
    echo $test ; die;

    But the value in variable is not showing in header, actually i want the value to be shown in footer,

    • Posted December 2, 2010 at 10:41 am | Permalink

      I recommend you define it as a constant such as:

      define('TEST', 2);

      The code should be inserted into the header as php:

      <?php echo TEST; ?>


6 Trackbacks/Pingbacks

  1. […] A definitive WordPress coding reference can be found on Lorelle on WordPress. There’s mention of a list of global WordPress variables by Abhjit Nadgouda, but to be honest I’ve read it, and found it dryer than a salt cracker. Still Abhjit has a nice web layout, worth the visit if only to see the Opera like pop-up web link previews. […]

  2. […] Abhijit Nadgouda’s List of WordPress Global Variables […]

  3. […] Abhijit Nadgouda’s List of WordPress Global Variables […]

  4. […] Abhijit Nadgouda’s List of WordPress Global Variables […]

  5. […] Abhijit Nadgouda’s List of WordPress Global Variables […]

  6. […] Abhijit Nadgouda’s List of WordPress Global Variables […]

Post a Comment

Required fields are marked *
*
*